package com.situ.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_Surcharge实体类
 * 
 * @author 
 *
 */
public class SySurcharge {
	/***/
	private Object id; 
	/***/
	private Integer SurchargeID; 
	/***/
	private Integer WaterTypeID; 
	/**
	 * 实例化
	 */
	public SySurcharge() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SySurcharge(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("SurchargeID") instanceof Number) {
			this.setSurchargeID(((Number) obj.get("SurchargeID")).intValue());
		}
		if (obj.get("WaterTypeID") instanceof Number) {
			this.setWaterTypeID(((Number) obj.get("WaterTypeID")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getSurchargeID() != null) {
			result.put("SurchargeID",this.getSurchargeID());
		}
		if (this.getWaterTypeID() != null) {
			result.put("WaterTypeID",this.getWaterTypeID());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取SurchargeID
	 * 
	 * @return
	 */
	public Integer getSurchargeID() {
		return SurchargeID;
	}

	/**
	 * 设置SurchargeID
	 * 
	 * @param SurchargeID
	 */
	public void setSurchargeID(Integer SurchargeID) {
		this.SurchargeID = SurchargeID;
	}
	
	/**
	 * 获取WaterTypeID
	 * 
	 * @return
	 */
	public Integer getWaterTypeID() {
		return WaterTypeID;
	}

	/**
	 * 设置WaterTypeID
	 * 
	 * @param WaterTypeID
	 */
	public void setWaterTypeID(Integer WaterTypeID) {
		this.WaterTypeID = WaterTypeID;
	}

	@Override
	public String toString() {
		return "SySurcharge [id=" + id + " , SurchargeID=" + SurchargeID + " , WaterTypeID=" + WaterTypeID + "  ]";
	
	}
	
	
}
